import './assets/index.scss'
import "./styles/index.scss"

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'

/* import the fontawesome core */
import { library } from '@fortawesome/fontawesome-svg-core'

/* import font awesome icon component */
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

/* import all icons */
import { fas } from '@fortawesome/free-solid-svg-icons'

import Icon from "@/components/Icon/index"
import Button from "@/components/Button/index"
import { vLoading } from './components/Loading/src/directive'
import { Skeleton, SkeletonItem } from "@/components/Skeleton/index"
import Empty from './components/Empty/idnex'

library.add(fas)

const app = createApp(App)

app.use(router)
app.component('font-awesome-icon', FontAwesomeIcon)
app.component("vt-icon", Icon)
app.component("vt-button", Button)
app.component("vt-skeleton", Skeleton)
app.component("vt-skeleton-item", SkeletonItem)
app.component(Empty.name, Empty)

app.directive('loading', vLoading as any)

app.mount('#app')
